﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace AuctionHouseDataLibrary
{
    [Serializable]
    [DataContract]
    public class RecurringAHScan
    {
        [DataMember]
        [Key]
        public int Id { get; set; }
        [DataMember]
        public string Realm { get; set; }
        [DataMember]
        public bool Alliance { get; set; }
        [DataMember]
        public bool Horde { get; set; }
        [DataMember]
        public bool Neutral { get; set; }
        [DataMember]
        public DateTime LastRunDateTime { get; set; }
        [DataMember]
        public DateTime NextRunDateTime { get; set; }
        [DataMember]
        public int MinutesBetweenScans { get; set; }

        public override string ToString()
        {
            return string.Format("Id: {0}, Realm: {1}, Alliance: {2}, Horde: {3}, Neutral: {4}, LastRunDateTime: {5}, NextRunDateTime: {6}, MinutesBetweenScans: {7}", Id, Realm, Alliance, Horde, Neutral, LastRunDateTime, NextRunDateTime, MinutesBetweenScans);
        }
    }
}